$(document).ready(function(){
	$('#feature .button').bind({
		mouseenter: function() {
			$(this).next().addClass('hover');
		},
		mouseleave: function() {
			$(this).next().removeClass('hover');
		}
	});
	$('#feature .content').bind({
		mouseenter: function() {
			$(this).prev().addClass('hover');
		},
		mouseleave: function() {
			$(this).prev().removeClass('hover');
		}
	});
	$('#feature > div').bind({
		mouseenter:function() {
			$(this).children('.content').stop().css({
				'width':0
			}).show().animate({
				'width':180
			});
		},
		mouseleave:function() {
			$(this).children('.content').stop().animate({
				'width':0
			}, function() {
				$(this).hide();
			});
		}
	});


	// ACCOUNT FLYOUT
	$('.konto .kontolabel .xxyy').click(function() {
		$('.konto .slidecontent').slideToggle();
	});

	//Productslider
	if( $('#products').length > 0 ){
		$('#products').slides({
			preload: true,
			preloadImage: '.../images/loading.gif',
			effect: 'slide, fade',
			crossfade: true,
			slideSpeed: 350,
			fadeSpeed: 500,
			generateNextPrev: true,
			generatePagination: false,
			currentClass: 'sliderCurrent'
		});
	}
	var ulLength = 0;
	$('#pagination li').each(function() {
		ulLength += $(this).outerWidth() + 8;
	});
	$('#pagination ul.pagination').css({
		width: ulLength
	});
	
	$('#orderaddress').change(function() {
		$('.neworderlayer.borderred').slideToggle();
	});
});// JavaScript Document